package com.beibei.file.writer;

import com.beibei.framework.logger.ILogger;
import com.beibei.framework.logger.LoggerFactory;

/**
 * 文件操作类
 * 
 * @author 309814490@qq.com
 * @since 2014-02-12
 */
public class FileWriter {
	private static ILogger pageLogger = LoggerFactory.getPageLog();
	private static ILogger jdbcLogger = LoggerFactory.getJdbcLog();

	public static void writerPage(String message) {
		String method = "writerPage";
		try {
			pageLogger.file(message);
		} catch (Exception e) {
			LoggerFactory.getCommonLog(FileWriter.class).error(method, message, e);
		}
	}

	public static void writerJdbc(String message) {
		String method = "writerJdbc";
		try {
			jdbcLogger.file(message);
		} catch (Exception e) {
			LoggerFactory.getCommonLog(FileWriter.class).error(method, message, e);
		}
	}

}
